package com.tdx.blog_nowcoder.myconfig;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 /**
 * @author tdx
 * @version 1.0
 * @description: TODO
 * @date 2022/8/4 16:36

 **/

@Data
@Component
@ConfigurationProperties(prefix = "mydoublecache")
public class MyDoubleCacheConfig {

    private Boolean allowNull = true;
    private Integer init = 100;
    private Integer max = 1000;
    private Long expireAfterWrite ;
    private Long expireAfterAccess;
    private Long refreshAfterWrite;
    private Long redisExpire;
}
